<#assign base=request.contextPath />
<#assign oneLabel="系统管理">

<#assign twoLabel="部门管理">
<#assign twoUrl=base+"/dept/list">

<#if deptDO?? && (deptDO.id)!=0>
	<#assign leafLabel="编辑部门">
	<#else>
	<#assign leafLabel="新增部门">
</#if>
<!DOCTYPE html>
<html lang="cn">
<head>
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName" method="post">
<div class="row">
	<div class="col-xs-12">
		<#include "/commons/hiddenField.ftl">
		<@spring.formHiddenInput "deptDO.id"/>
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" for="form-field-1">
				名称<span class="red">*</span>
			</label>
			<div class="col-sm-4">
				<@spring.formInput "deptDO.name" "class='col-xs-10 col-sm-10'"/>
			</div>
			<div class="help-block col-xs-12 col-sm-reset inline red">
				<@spring.showErrors "deptDO.name" />
			</div>
		</div>
		<div class="space-4"></div>
			
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">备注</label>
			<div class="col-sm-4">
				<@spring.formTextarea "deptDO.remark" 'class="col-sm-10" rows="4" '/>
			</div>
			<div class="help-block col-xs-12 col-sm-reset inline red">
				<@spring.showErrors "deptDO.remark" />
			</div>
		</div>
	</div><!-- /.col -->
</div><!-- /.row -->
</form>
<div class="hr hr32 hr-dotted"></div>

<div class="clearfix">
	<div class="col-md-offset-2 col-md-9">
		<button class="btn btn-xs btn-info" type="button" id="save_id" 
				url="<#if deptDO??&&deptDO.id!=0>${base}/dept/edit<#else>${base}/dept/add</#if>">
			<i class="icon-save bigger-110"></i>保存
		</button>
		<button class="btn btn-xs return_class" type="button" url="${base}/dept/list">
			<i class="icon-reply bigger-110"></i>返回
		</button>
	</div>
</div>
<#include "/commons/footer.ftl">
</body>
</html>